package com.liangzhong.modules.goldpalace.command
{
	import com.liangzhong.constants.ApplicationConstants;
	import com.liangzhong.proxy.goldpalace.GoldPalaceProxy;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	/**
	 *黄金12宫 
	 * @author lake
	 * 
	 */	
	public class GoldPalaceCommand extends SimpleCommand
	{
		public function GoldPalaceCommand()
		{
			super();
		}
		override public function execute(notification:INotification):void
		{
			var proxy :GoldPalaceProxy = facade.retrieveProxy(GoldPalaceProxy.ProxyName) as GoldPalaceProxy;
			switch(notification.getName())
			{
				case ApplicationConstants.GOLDPALACE_GET_INFO:// 获取12宫信息
				{
					proxy.getInfo(notification.getBody());
					break;
				}
				case ApplicationConstants.GOLDPALACE_ACTIVE_PLAYER://激活球员
				{
					proxy.activePlayer(notification.getBody());
					break;
				}
				case ApplicationConstants.GOLDPALACE_CHANGE_AWARD://更换奖励
				{
					proxy.changeAward(notification.getBody());
					break;
				}
				case ApplicationConstants.GOLDPALACE_DROP_TIME://去除冷却时间
				{
					proxy.dropTime(notification.getBody());
					break;
				}
				case ApplicationConstants.GOLDPALACE_GET_AWARD://领取奖励
				{
					proxy.getAward(notification.getBody());
					break;
				}
			}
		}
	}
}